$OpenBSD: patch-src_backends_R_rserver_CMakeLists_txt,v 1.1 2015/05/02 09:48:12 zhuk Exp $
--- src/backends/R/rserver/CMakeLists.txt.orig	Sat May  2 12:39:18 2015
+++ src/backends/R/rserver/CMakeLists.txt	Sat May  2 12:39:54 2015
@@ -17,7 +17,7 @@ add_custom_target(renvvars COMMAND ${R_EXECUTABLE} --s
 add_custom_target(rautoloads COMMAND ${R_EXECUTABLE} --slave --file=${CMAKE_CURRENT_SOURCE_DIR}/tools/autoloads.r > ${CMAKE_CURRENT_BINARY_DIR}/rautoloads.h )
 
 kde4_add_executable( cantor_rserver ${RServer_SRCS} )
-set_target_properties( cantor_rserver PROPERTIES INSTALL_RPATH_USE_LINK_PATH false)
+set_target_properties( cantor_rserver PROPERTIES INSTALL_RPATH_USE_LINK_PATH true)
 target_link_libraries( cantor_rserver ${KDE4_KDEUI_LIBS} cantorlibs ${R_LIBRARIES} ${KDE4_KIO_LIBS})
 add_dependencies(cantor_rserver renvvars rautoloads)
 
